<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>demo</title>
  <link href="../params/css/bootstrap.min.css" rel="stylesheet"/>
  <!--<script src="js/jquery.min.js"></script>-->
  <!--<script src="js/bootstrap.min.js"></script>-->
</head>

<body>
<div class="container">
  <div class="col-sm-8 col-sm-offset-2" style="padding-top:3em;">
      <div class="form-group">

        <label class="col-sm-2 control-label">名称：</label>
        <div class="col-sm-10">
         <input type="name" class="form-control" style="border:none;border-bottom:1px solid #ccc;box-shadow:none;border-radius:0;"/>
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-2 control-label">版本：</label>

        <div class="col-sm-4">
     <input type="name" class="form-control" style="border:none;border-bottom:1px solid #ccc;box-shadow:none;border-radius:0;"/>
        </div>
        <label class="col-sm-2 control-label">时间：</label>

        <div class="col-sm-4">
          <input type="text" class="form-control" style="border:none;border-bottom:1px solid #ccc;box-shadow:none;border-radius:0;"/>
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-2 control-label">参数列表：</label>

        <div class="col-sm-10"></div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">&nbsp;</label>
        <div class="col-sm-10">
          <table class="table table-bordered table-responsive">
            <thead>
            <tr>
              <th class="text-center">名称</th>
              <th class="text-center">类型</th>
              <th class="text-center">必填</th>
              <th class="text-center">备注</th>
            </tr>
            </thead>
            <tbody>

            <% @params.each do |param| %>
                <tr>
                  <td style="width:25%; text-align: center"><%= param.name %></td>
                  <td style="width:25%; text-align: center"><%= param.typeName %></td>
                  <td style="width:25%; text-align: center"><%= param.need %></td>
                  <td style="width:25%; text-align: center"><%= param.remark %></td>

                  <td><%= link_to 'Show', param %></td>
                  <td><%= link_to 'Edit', edit_param_path(param) %></td>
                  <td><%= link_to 'Destroy', param, method: :delete, data: {confirm: 'Are you sure?'} %></td>

                </tr>
            <% end %>

            </tbody>
          </table>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">结果示例：</label>

        <div class="col-sm-10"></div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">&nbsp;</label>

        <div class="col-sm-10">
          <textarea style="width:100%;" rows="15"></textarea>
        </div>
      </div>
  </div>
</div>
</body>
<p id="notice"><%= notice %></p>
<%= link_to 'New Param', new_param_path %>
</html>